% /*******************************************************************************
%  * Rounding UP
%  * *****************************************************************************
%  * Same as Round Nearest, except taking ceil instead of near
%  * E.g. 10.11 -> 11 -> 11/2^2 -> 0.11
%  * @param x     Input number in [0,1)
%  * @param bits  Significant bits(or #bits to keep)
%  * @return      Rounded(up) number
%  */
function x_round = rnd_up(x, bits)
scale = 2^bits;
x_round = double(ceil(x * scale)/scale);
end